package paim.wingchun.testes;

import java.text.DateFormatSymbols;
import java.util.Arrays;
import java.util.List;

import paim.gh.model.DiasSemana;

public class testeData {
    static enum caca{

    }

     enum Weekday {
         SUNDAY, MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, ;

         public static List<Weekday> getLista() {
             return Arrays.asList(Weekday.values());
         }
    }
    public static void main(String[] args) {

        System.out.println(Weekday.SUNDAY.ordinal());

        String[] weekdays = new DateFormatSymbols().getWeekdays();
        for ( int i = 0; i < weekdays.length; i++ ) {
            String weekday = weekdays[i];
            System.out.println(i+"weekday = " + weekday);
        }

        String[] shortWeekdays = new DateFormatSymbols().getShortWeekdays();
        for ( int i = 0; i < shortWeekdays.length; i++ ) {
            String shortWeekday = shortWeekdays[i];
            System.out.println(i+"shortWeekday = " + shortWeekday);
        }

//
//     // Create a calendar with year and day of year.
//       Calendar calendar = Calendar.getInstance();
//       calendar.set(Calendar.YEAR, 2007);
//       calendar.set(Calendar.DAY_OF_YEAR, 180);
//
//       // See the full information of the calendar object.
//       System.out.println(calendar.getTime().toString());
//
//       // Get the weekday and print it
//       int weekday = calendar.get(Calendar.DAY_OF_WEEK);
//       System.out.println("Weekday: " + weekday);


    System.out.println(Weekday.SUNDAY.ordinal());
    String sa = new DateFormatSymbols().getWeekdays()[1];
    System.out.println(sa);
        System.out.println(DiasSemana.values());
    }
}
